<template>
    <contentIndex v-if="showContent"></contentIndex>
</template>
<script>
    import { mapState } from 'vuex';
    import contentIndex from '@/components/main/index'


    export default {
        components: {
            contentIndex
        },
        data() {
            return {
                showContent: false,
            }
        },
        mounted() {
            var winId = this.$win.id;
            this.$electron.ipcRenderer.on('set-window-param', (event, param) => {
                var $param = JSON.parse(param);
                this.$store.dispatch('mainOptions/setMainOptions', $param);
                this.showContent = true;
            });
            this.$electron.ipcRenderer.send('get-window-param', winId);
        },
    }
</script>
<style scoped>


</style>